package lvbu.wang.lvbuoperator.ui.paramset.ui;

import lvbu.wang.lvbuoperator.bean.FirmwareVersion;

/**
 * Created by DaiQing.Zha on 2017/2/27 0027.
 */
public interface IBleParamSetView {

    int TOAST_COMM_BLE_NOT_SUPPORT = 1001;
    int TOAST_COMM_BLUETOOTH_NOT_OPEN = 1002;
    int TOAST_COMM_BLE_CONNECTING = 1003;
    int TOAST_COMM_BLE_IS_NOT_CONNECT = 1004;
    int TOAST_PARAM_SET_RESET_SUCCESS = 1005;
    int TOAST_PARAM_SET_RESET_FAIL = 1006;
    int TOAST_UPGRADE_SUCCESS_NOT_STATIC = 1007;
    int TOAST_UPGRADE_SUCCESS_UNDER_VOLTAGE = 1008;
    int TOAST_PARAM_SET_CLOSED_SUCCESS =1009;

    int PROGRESS_TYPE_NAME = 2000;
    int PROGRESS_CIRCUMFERENCE = 2001;
    int PROGRESS_CHANGE_STATUS_CHANGES_ING = 2002;
    int PROGRESS_ADJUST_POWER_LEVEL_ING = 2003;
    int PROGRESS_ADJUST_BIKE_WEIGHT = 2004;
    int PROGRESS_ADJUST_LOAD_WEIGHT = 2005;
    void showProcess(int type);        //显示正在操作对话框
    void hideProcess();               //隐藏正在操作对话框
    void showToast(int type);       //显示toast信息
    void showToast(String toast);  //显示toast信息
    void showToast(int type,String toast);  //显示toast信息

    void refreshUI_motorInfo(); //更新motorInfo信息
    void refreshUI_bluetooth(); //更新蓝牙
    void refreshUI_voltage(String voltage);   //更新电压
    void refreshUI_motorStatus(String status);
    void refreshUI_powerLevel(String value);                  //更新助力等级
    void refreshUI_overSpeed(String value); //更新超速报警
    void refreshUI_bikeWeight(String bikeWeight);   //修改车重
    void refreshUI_loadWeight(String loadWeight);   //修改载重
    void refreshUI_typeName(String type);                         //更新轮毂型号
    void refreshUI_circumference(String value);                 //更新轮胎周长
    void refreshUI_downLoadProgress(int type);   //更新固件下载进度对话框
    void refreshUI_afterReceive06();            //收到06后的处理
    void refreshUI_upgradeProgress(int progress);      //更新升级进度条进度
    void refreshUI_dismissDownload();                 //销毁下载进度条
    void refreshUI_beginUpgrade(int finalArrSize);  //开始升级
    void refreshUI_checkFirmware(FirmwareVersion firmwareVersion);  //检查新固件
    void refreshUI_madeDate(String date);       //更新出厂时间
    void refreshUI_getMadeDate(String date);  //更新出厂时间
    void refreshUI_batteryPowerAndMode(String value);
    void refreshUI_bikeName(String bikeName);//修改名称
}
